<template>
	<view>
		<view data-index="11" @click="handleClick(1,$event)">对对对1</view>
		<view data-index="22" @click="handleClick(2,$event)">对对对2</view>
	</view>
</template>

<script>
export default{
	methods:{
		handleClick(index,event){
			console.log(index);
			console.log(event.currentTarget.dataset.index);
		}
	},
	//获取全局数据通过Vue原型获取
	onLoad() {
		//
		console.log(this.baseurl)
		//获取globalData数据
		getApp().globalData.base=123;
	}
}
</script>

<style>
</style>
